package SV_XSS_COOKIE_SECURE;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;

public class Fixed_01 {
    void test(HttpServletResponse response) {
        String sessionID = generateSessionId();
        Cookie c = new Cookie("session_id", sessionID);
        c.setSecure(true);
        response.addCookie(c);

    }

    private String generateSessionId() {
        return null;
    }
}
